/*-
 * Copyright notice
 * 
 * (c) 2011 Christian Würtz <christian.wuertz@googlemail.com>
 * 
 * All rights reserved.
 * 
 * This file is part of the google-static-map-url-builder project. It is free
 * software: you can redistribute it and/or modify it under the terms of the 
 * GNU General Public License as published by the Free Software Foundation,
 * either version 2 of the License, or (at your option) any later version.
 * 
 * The google-static-map-url-builder is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 
 * Public License for more details.
 *  
 * You should have received a copy of the GNU General Public License
 * along with the google-static-map-url-builder. If not, see 
 * <http://www.gnu.org/licenses/>.
 */
package de.wuertz.map.enumeration;

/**
 * Supported predefined colors.
 * 
 * @author Christian Würtz <christian.wuertz@googlemail.com>
 */
public enum Color
{
	/**
	 * Black.
	 */
	BLACK,
	/**
	 * Brown.
	 */
	BROWN,
	/**
	 * Green.
	 */
	GREEN,
	/**
	 * Purple.
	 */
	PURPLE,
	/**
	 * Yellow.
	 */
	YELLOW,
	/**
	 * Blue.
	 */
	BLUE,
	/**
	 * Grey.
	 */
	GREY,
	/**
	 * Orange.
	 */
	ORANGE,
	/**
	 * Red.
	 */
	RED,
	/**
	 * White.
	 */
	WHITE;

	/**
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Enum#toString()
	 */
	@Override
	public String toString()
	{
		if( this.equals( BLACK ) )
		{
			return "black";
		}
		else if( this.equals( BROWN ) )
		{
			return "brown";
		}
		else if( this.equals( GREEN ) )
		{
			return "green";
		}
		else if( this.equals( PURPLE ) )
		{
			return "purple";
		}
		else if( this.equals( YELLOW ) )
		{
			return "yellow";
		}
		else if( this.equals( BLUE ) )
		{
			return "blue";
		}
		else if( this.equals( GREY ) )
		{
			return "grey";
		}
		else if( this.equals( ORANGE ) )
		{
			return "orange";
		}
		else if( this.equals( RED ) )
		{
			return "red";
		}
		else
		{
			return "white";
		}
	}
}
